import request from '../utils/request'

export function page(data) {
    return request({
        url: '/uum-blog/api/v1/blog/page',
        method: 'get',
        params: data
    })
}

export function getSuggest(data) {
    return request({
        url: '/uum-blog/api/v1/blog/listSuggest/' + data,
        method: 'get'
    })
}

export function detail(id) {
    return request({
        url: '/uum-blog/api/v1/blog/detail/' + id,
        method: 'get'
    })
}

export function settingBlog(data) {
    return request({
        url: '/uum-blog/api/v1/blog/setting',
        method: 'put',
        data
    })
}

export function updateBlog(data) {
    return request({
        url: '/uum-blog/api/v1/blog/update',
        method: 'put',
        data
    })
}

export function addBlog(data) {
    return request({
        url: '/uum-blog/api/v1/blog/add',
        method: 'post',
        data
    })
}

export function delBlog(ids) {
    return request({
        url: '/uum-blog/api/v1/blog/delete/' + ids,
        method: 'delete'
    })
}


